package github.pop.ares.block;

import github.pop.ares.Utils;
import github.pop.ares.entity.EntityTypeRegistry;
import github.pop.ares.entity.FlyingSwordEntity;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public class TileEntityTypeRegistry {
    public static final DeferredRegister<TileEntityType<?>> TILE_ENTITIES = DeferredRegister.create(ForgeRegistries.TILE_ENTITIES, Utils.MOD_ID);
    public static final RegistryObject<TileEntityType<ObsidianCounterTileEntity>> obsidianCounterTileEntity = TILE_ENTITIES.register("obsidian_counter_tileentity", () -> TileEntityType.Builder.of(ObsidianCounterTileEntity::new, BlockRegistry.obsidianCounterBlock.get()).build(null));
    public static RegistryObject<TileEntityType<ObsidianHelloTileEntity>> obsidianHelloTileEntity = TILE_ENTITIES.register("obsidian_hello_tileentity", () -> TileEntityType.Builder.of(ObsidianHelloTileEntity::new, BlockRegistry.obsidianHelloBlock.get()).build(null));
    public static RegistryObject<TileEntityType<ObsidianZombieTileEntity>>  obsidianZombieTileEntity= TILE_ENTITIES.register("obsidian_zombie_tileentity", () -> TileEntityType.Builder.of(ObsidianZombieTileEntity::new, BlockRegistry.obsidianZombieBlock.get()).build(null));
    public static RegistryObject<TileEntityType<ObsidianTERTileEntity>>  obsidianTERTileEntity= TILE_ENTITIES.register("obsidian_ter_tileentity", () -> TileEntityType.Builder.of(ObsidianTERTileEntity::new, BlockRegistry.obsidianTERBlock.get()).build(null));


    public static void register(IEventBus bus){
        TILE_ENTITIES.register(bus);
    }
}
